<?php
$beverages = $_SESSION['selection'];
$i = $_GET['i'];

foreach($beverages as $id=>$entry){
	$entry['id'] = $id;
	
	$entry['isDefault'] = false;
	
	if($id == $i){
		$entry['isDefault'] = true;
	}
	
	$beverages[$id] = $entry;
	
}
$_SESSION['selection'] = $beverages;

header('location: index.php?p=home');
?>
